package com.four.order.controller;

import com.four.common.utils.R;
import com.four.order.entity.OrLogistics;
import com.four.order.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hxw
 * @Date: 2022/1/17 19:35
 */
@RestController
@RequestMapping("order/logistics")
public class LogisticsController {
    @Autowired
    private LogisticsService logisticsService;

    /**
     * 添加物流
     * @param logistics
     * @return
     */
    @PostMapping("saveLogistics")
    public R saveLogistics(@RequestBody OrLogistics logistics) {

        return logisticsService.saveLogistics(logistics);
    }
}
